.game-container {
    min-width: 600px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 30px;
    background: linear-gradient(135deg, #141E30 0%, #243B55 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.word-section {
    text-align: center;
    margin-bottom: 30px;
}

.english-word {
    font-size: 3em;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.phonetic {
    font-size: 1.2em;
    color: #ADD8E6;
    margin-bottom: 15px;
}

.example {
    font-style: italic;
    color: #B0C4DE;
    padding: 15px;
    border-left: 4px solid #4682B4;
    margin: 20px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 0 10px 10px 0;
}

.input-section {
    text-align: center;
    margin-top: 30px;
}

.translation-input {
    width: 80%;
    padding: 15px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.translation-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.game-button {
    padding: 12px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn {
    background: #4CAF50;
    color: white;
}

.confirm-btn {
    font-family: 'Fredoka', cursive;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #4CAF50;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100px;
}

.confirm-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirm-btn:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.skip-btn {
    font-family: 'Fredoka', cursive;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #dc3545;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100px;
    opacity: 0.8;
}

.skip-btn:hover {
    background-color: #c82333;
    opacity: 0.8;
}

.skip-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skip-btn:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.skip-btn:disabled:hover {
    background-color: #7f8c8d;
    transform: none;
    box-shadow: none;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.submit-btn:hover {
    background: #66bb6a;
}


.feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

.feedback.correct {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.feedback.incorrect {
    background: rgba(255, 87, 34, 0.2);
    color: #FF5722;
}

.audio-btn {
    background: none;
    border: none;
    color: #ADD8E6;
    cursor: pointer;
    font-size: 1.5em;
    margin: 10px;
}

.audio-btn:hover {
    color: #FFD700;
}

/* 添加音频图标相关样式 */
.audio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.audio-icon:hover {
    transform: scale(1.1);
}

.audio-icon svg {
    width: 100%;
    height: 100%;
}

.audio-icon .speaker {
    fill: #ffd700;
}

.audio-icon .wave1,
.audio-icon .wave2 {
    stroke: #ffd700;
    stroke-width: 2;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.6));
}

.audio-icon .wave1 {
    opacity: 0.3;
}

.audio-icon .wave2 {
    opacity: 0.1;
}

.audio-icon:hover .wave1,
.audio-icon:hover .wave2 {
    opacity: 0.6;
}

.audio-icon.playing .wave1 {
    animation: wave 1.5s infinite;
}

.audio-icon.playing .wave2 {
    animation: wave 1.5s infinite 0.4s;
}

@keyframes wave {
    0% {
        opacity: 0.2;
        transform: translateX(-3px) scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(0) scaleY(1);
    }
    100% {
        opacity: 0.2;
        transform: translateX(3px) scaleY(0.8);
    }
}

.word-phonetic {
    display: inline-flex;
    align-items: center;
    font-size: 1.2em;
    color: #ADD8E6;
    margin-bottom: 15px;
}

.translation-input.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    border: 2px solid #FF5722;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

#score {
    position: fixed;
    top: 70px;
    right: 5%;
    font-size: 24px;
    color: #fff;
    z-index: 20;
    font-family: 'Fredoka One', cursive;
}

/* 添加单词列表相关样式 */
#wordlist-container {
    width: 250px;
    height: 70vh;
    overflow-y: auto;
    background-color: rgba(36, 59, 85, 0.8);
    padding: 20px;
    position: fixed;
    top: 20%;
    right: 5%;
    box-sizing: border-box;
    border-radius: 15px;
}

.wordlist-column {
    margin-bottom: 20px;
}

.wordlist-column h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.wordlist-column ul {
    list-style-type: none;
    padding: 0;
}

.wordlist-column li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 16px;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.wordlist-column li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.word-result-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.word-result-icon.correct {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.2);
}

.word-result-icon.incorrect {
    color: #F44336;
    background-color: rgba(244, 67, 54, 0.2);
}

/* 添加蒙版样式 */
.game-container.disabled {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.game-container.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

#loading-dots {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #fff;
    border-radius: 50%;
    animation: dot-blink 1.4s infinite both;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-blink {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: -100px auto 20px auto;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

